package com.qboot.quartz.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qboot.quartz.entity.JobLog;
import com.qboot.quartz.mapper.JobLogMapper;
import com.qboot.quartz.service.JobLogService;
import com.qboot.quartz.vo.JobLogVo;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 定时任务日志 接口实现类
 *
 * @author Tellsea
 * @date 2023-03-03
 */
@Service
@RequiredArgsConstructor(onConstructor_ = @Autowired)
public class JobLogServiceImpl extends ServiceImpl<JobLogMapper, JobLog> implements JobLogService {

    @Override
    public Page<JobLogVo> queryList(Page page, JobLogVo entity) {
        return this.baseMapper.queryList(page, entity);
    }

    @Override
    public JobLogVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
